package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.service.IBuyRecordService;
import cn.wolfcode.crm.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author crq
 * @date 2022/9/10 19:46
 **/
@Controller
public class TestController {

    @Autowired
    public IBuyRecordService buyRecordService;

    @Autowired
    private IEmployeeService employeeService;

    @GetMapping
    public void gitTest(){
        System.out.println("测试");
    }

    @RequestMapping("test")
    public Object test() {
        return employeeService.get(12L);
    }
}
